package com.etc.entity;

import org.springframework.stereotype.Component;

import java.math.BigDecimal;
@Component
public class OrderSku {
    /**
     * 订单编号
     */
    private String id;

    /**
     * 商品id
     */
    private String skuId;

    /**
     * 商品标题
     */
    private String title;

    /**
     * 商品单价
     */
    private BigDecimal price;

    /**
     * 商品购买数量
     */
    private Integer num;

    /**
     * 商品总金额
     */
    private BigDecimal totalFee;

    /**
     * 商品图片地址
     */
    private String picPath;

    /**
     * 收货状态
     */
    private Integer stasus;

    /**
     * 发货状态
     */
    private Integer remind;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public BigDecimal getTotalFee() {
        return totalFee;
    }

    public void setTotalFee(BigDecimal totalFee) {
        this.totalFee = totalFee;
    }

    public String getPicPath() {
        return picPath;
    }

    public void setPicPath(String picPath) {
        this.picPath = picPath;
    }

    public Integer getStasus() {
        return stasus;
    }

    public void setStasus(Integer stasus) {
        this.stasus = stasus;
    }

    public Integer getRemind() {
        return remind;
    }

    public void setRemind(Integer remind) {
        this.remind = remind;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", skuId=").append(skuId);
        sb.append(", title=").append(title);
        sb.append(", price=").append(price);
        sb.append(", num=").append(num);
        sb.append(", totalFee=").append(totalFee);
        sb.append(", picPath=").append(picPath);
        sb.append(", stasus=").append(stasus);
        sb.append(", remind=").append(remind);
        sb.append("]");
        return sb.toString();
    }

    public OrderSku() {
    }

    public OrderSku(String id, String skuId, String title, BigDecimal price, Integer num, BigDecimal totalFee, String picPath, Integer stasus, Integer remind) {
        this.id = id;
        this.skuId = skuId;
        this.title = title;
        this.price = price;
        this.num = num;
        this.totalFee = totalFee;
        this.picPath = picPath;
        this.stasus = stasus;
        this.remind = remind;
    }

    public OrderSku(String skuId, BigDecimal price, Integer num, String picPath) {
        this.skuId = skuId;
        this.price = price;
        this.num = num;
        this.picPath = picPath;
    }
}